package main

import "fmt"

func testOperator() {
  //逻辑操作符
  var a int = 2
  if a != 2 {
    fmt.Printf("is right\n")
  }else {
    fmt.Printf("is not right\n")
  }

  //===================================
  //算数操作符
  a = a+100
  fmt.Printf("a=%d\n",a)

}

func main() {
  testOperator()
}
